{% extends "dtdBase.html" %}

{% block title %}我的任务{% endblock %}

{% load updateleftmenucss %}

{% block leftmenu %}{% left_css "infocernter" %} {% endblock %}

{% block javascript %}
    <script type="text/javascript" src="/static/js/plugins/jquery.flot.min.js"></script>
    <script type="text/javascript" src="/static/js/custom/widgets.js"></script>

    {% if stateMessage != None %}
        <script type="text/javascript">
            jQuery(document).ready(function(){
                jQuery.jGrowl("{{ stateMessage }}",{closer:false},{corners:'15px'});
            })
        </script>
    {% endif %}
{% endblock %}

{% block maincontentinner %}

    <ul class="maintabmenu">
        <li><a href="{% url 'load_infocenter' %}">任务流</a></li>
        <li><a href="{% url 'load_infocenter' %}">议价区</a></li>
        <li  class="current"><a href="{% url 'my_task' %}">我的任务</a></li>
        <li><a href="{% url 'load_create_task' %}">发布任务</a></li>


    </ul><!--maintabmenu-->

    <div class="content widgetgrid">


        <div class="contenttitle radiusbottom0">
            <h2 class="table"><span>已发布任务</span></h2>
        </div><!--contenttitle-->
        <div class="tableoptions">
            <button class="deletebutton radius3" title="table2">删除任务</button> &nbsp;
            <select class="radius3">
                <option value="">全部</option>
                <option value="">全部</option>
            </select> &nbsp;

        </div><!--tableoptions-->
        <table cellpadding="0" cellspacing="0" border="0" id="table2" class="stdtable stdtablecb">
            <colgroup>
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
            </colgroup>
            <thead>
            <tr>
                <th class="head0"><input type="checkbox" class="checkall" /></th>
                <th class="head1">任务类型</th>
                <th class="head0">开始时间</th>
                <th class="head1">结束时间</th>
                <th class="head0">价格</th>
                <th class="head1">语种</th>
                <th class="head0">&nbsp;</th>
            </tr>
            </thead>
            <tfoot>
            <tr>
                <th class="head0"><input type="checkbox" class="checkall" /></th>
                <th class="head1">任务类型</th>
                <th class="head0">开始时间</th>
                <th class="head1">结束时间</th>
                <th class="head0">价格</th>
                <th class="head1">语种</th>
                <th class="head0">&nbsp;</th>
            </tr>
            </tfoot>
            <tbody>
            {% for task in tasks  %}
            <tr>
                <td class="center"><input type="checkbox" value="{{ task.Task_id }}"/></td>
                <td class="center">
                    {% if task.Task_type == '1' %}
                        培训
                    {% elif  task.Task_type == '2'  %}
                        翻译
                     {% endif %}   </td>
                <td class="center">{{task.Task_start_time|date:"Y-m-d"}}</td>
                <td class="center">{{task.Task_end_time|date:"Y-m-d"}}</td>
                <td class="center">{{task.Prices}}</td>
                <td class="center">{{task.Language.Language_name}}</td>
                <td class="center"><a href="" class="edit">编辑</a> &nbsp; <a href="" class="delete">删除</a></td>
            </tr>
            {% endfor %}

            </tbody>
        </table>




    </div><!--content-->


{% endblock %}
